package edu.friday.model.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.ColumnDefault;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysMenuVO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    @NotBlank(message = "菜单名称不能为空")
    @Size(min = 0,max = 50,message = "菜单名称长度不能超过50个字符")
    private String menuName;

    private String parentName;

    private Long parentId;

    @NotBlank(message = "显示顺序不能为空")
    private Integer orderNum;

    @Size(min = 0,max = 200,message = "路由地址长度不能超过200个字符")
    private String path;

    @Size(min = 0,max = 255,message = "组件路径长度不能超过255个字符")
    private String component;

    private Integer isFrame;

    @NotBlank(message = "菜单类型不能为空")
    private Character menuType;

    private Character visible;

    @Size(min = 0,max = 100,message = "权限标识长度不能超过100个字符")
    private String perms;

    private String icon;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd MM:mm:ss")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd MM:mm:ss")
    private Date updateTime;

    private String remark;

    private List<SysMenuVO> children;
}
